package com.qch.concurrent.demo_06_daemon;

/**
 * @Author qch
 * @Date 2021/7/29
 * daemon线程随着非守护线程都运行结束自动结束
 */
public class Main {
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        MyDaemonThread myDaemonThread = new MyDaemonThread();
        myDaemonThread.setDaemon(true);
        myDaemonThread.start();
        myThread.start();
    }
}
